package jgl.vajra.management.part.mine.model;


import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.manager.AccountManager;
import jgl.vajra.management.part.mine.contract.BankCardEditContract;
import jgl.vajra.management.widget.manager.RxJavaHttpManager;
import jgl.vajra.management.widget.manager.retrofit.RetrofitJsonManager;
import jgl.vajra.management.widget.utils.UIUtils;

public class BankCardEditModel extends BankCardEditContract.Model{
    @Override
    public Observable<String> bindBankCardData(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().bindBankCardData(map, AccountManager.getInstance().getLoginData(UIUtils.getContext()).authorization)
                .compose(RxJavaHttpManager.applyTransformer());
    }
}
